<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>微信公众号按钮配置</title>
    <!-- Bootstrap 3.3.5 -->
    <link href="http://cdn.52shangou.com/bootstrap/1.0.2/build/3.3.5/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="../../src/c/font-awesome-4.4.0/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="../../src/c/ionicons-2.0.1/css/ionicons.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="../../src/c/dist/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="../../src/c/dist/css/skins/_all-skins.min.css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <link href="http://cdn.52shangou.com/dataTables/1.0.0/build/dataTables.bootstrap.min.css" rel="stylesheet">
    <link href="http://cdn.52shangou.com/bootstrapvalidator/1.0.0/build/css/bootstrapValidator.min.css"
          rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="../../build/c/base/index.css">
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

    <header class="main-header">
        <!-- Logo -->
        <a href="../home/index.html" class="logo">
            <!-- mini logo for sidebar mini 50x50 pixels -->
            <span class="logo-mini"><b>C</b>RM</span>
            <!-- logo for regular state and mobile devices -->
            <span class="logo-lg"><b>闪电购</b>CRM</span>
        </a>

        <!-- Header Navbar: style can be found in header.less -->
        <nav class="navbar navbar-static-top" role="navigation">
            <!-- Sidebar toggle button-->
            <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                <span class="sr-only">导航</span>
            </a>
            <!-- Navbar Right Menu -->
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">


                </ul>
            </div>
        </nav>
    </header>
    <!-- Left side column. contains the logo and sidebar -->
    <aside class="main-sidebar" id="main-sidebar">

    </aside>


    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                微信公众号按钮
            </h1>
        </section>

        <!-- Main content -->
        <section class="content">
            <!-- Info boxes -->
            <div class="panel panel-default">
                <div class="panel-body " style="text-align: center">
                    <div class="btn-group" role="group" id="btn_div">
                    </div>
                    <button type="button" id="add_new" class="btn btn-primary" style="display:none"><span
                            class="glyphicon glyphicon-plus"></span>添加菜单
                    </button>
                </div>
                <div class="panel-body">
                    <form class="form-horizontal" role="form" action="javascript:void(0);" method="post"
                          id="weixin_form" style="display: none">
                        <div class="form-group">
                            <label for="btn_type" class="col-sm-2 control-label">菜单类型</label>

                            <div class="col-sm-10">
                                <select id="btn_type" name="btn_type" class="form-control" required
                                        data-bv-notempty-message="请选择菜单类型">
                                    <option value="" selected>请选择菜单类型</option>
                                    <option value="view">跳转URL</option>
                                    <option value="click">点击推事件</option>
                                    <!-- -->
                                    <!--<option value="scancode_push">扫码推事件</option>-->
                                    <!--<option value="scancode_waitmsg">扫码推事件且弹出“消息接收中”提示框</option>-->
                                    <!--<option value="pic_sysphoto">弹出系统拍照发图</option>-->
                                    <!--<option value="pic_photo_or_album">弹出拍照或者相册发图</option>-->
                                    <!--<option value="pic_weixin">弹出微信相册发图器</option>-->
                                    <!--<option value="location_select">弹出地理位置选择器</option>-->
                                    <!--<option value="media_id">下发消息（除文本消息）</option>-->
                                    <!--<option value="view_limited">跳转图文消息URL</option>-->
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="btn_name" class="col-sm-2 control-label">菜单标题</label>

                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="btn_name" id="btn_name"
                                       required
                                       data-bv-notempty-message="请输入菜单标题"
                                       placeholder="菜单标题"/>
                            </div>
                        </div>
                        <div class="form-group" id="btn_key_div">
                            <label for="btn_key" class="col-sm-2 control-label">菜单KEY值</label>

                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="btn_key" id="btn_key"
                                       required
                                       data-bv-notempty-message="请输入菜单KEY值"
                                       placeholder="菜单KEY值"/>
                            </div>
                        </div>
                        <div class="form-group" id="btn_url_div">
                            <label for="btn_url" class="col-sm-2 control-label">网页链接</label>

                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="btn_url" id="btn_url"
                                       required
                                       data-bv-notempty-message="请输入网页链接"
                                       placeholder="网页链接"/>
                            </div>
                        </div>
                        <div class="form-group" id="btn_media_id_div">
                            <label for="btn_media_id" class="col-sm-2 control-label">media_id</label>

                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="btn_media_id" id="btn_media_id"
                                       required
                                       data-bv-notempty-message="请输入media_id"
                                       placeholder="media_id"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"></label>
                            <div class="col-sm-8">
                                <input type="hidden" id="btn_id" name="btn_id"/>
                                <input type="hidden" id="btn_id_type" name="btn_id_type"/>
                                <a href="javascript:void(0);" class="btn btn-success" id="btn_save">保 存</a>
                                <a href="javascript:void(0)" class="btn btn-danger" id="btn_delete">删 除</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

    <footer class="main-footer">

    </footer>

    <!-- Control Sidebar -->


    <!-- /.control-sidebar -->
    <!-- Add the sidebar's background. This div must be placed
         immediately after the control sidebar -->
    <div class="control-sidebar-bg"></div>

</div>
<!-- ./wrapper -->

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="http://cdn.52shangou.com/jquery/1.0.0/build/jquery-1.11.3.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="http://cdn.52shangou.com/jquery.cookie/1.0.0/build/jquery.cookie.min.js"></script>
<script src="http://cdn.52shangou.com/bootstrap/1.0.0/build/3.3.5/bootstrap.min.js"></script>
<script src="http://cdn.52shangou.com/bootstrapvalidator/1.0.0/build/js/bootstrapValidator.min.js"></script>
<!-- AdminLTE App -->
<script src="../../src/c/dist/js/app.min.js"></script>
<script type="text/javascript" src="http://cdn.52shangou.com/lib/1.0.1/build/lib/require.js"></script>
<script type="text/javascript">
    require.config({
        urlArgs: 't=' + (new Date()).getTime(),
        baseUrl: '../../build',
        paths: {
            'juicer': 'http://cdn.52shangou.com/lib/1.0.4/build/lib/juicer-amd'
        }
    });
    require(['p/other/weixin/index']);
</script>
</body>
</html>